package com.lg.erp.service.impl.maxuejiao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lg.erp.entity.maxuejiao.TLaser;
import com.lg.erp.mapper.maxuejiao.JGMMapper;
import com.lg.erp.service.maxuejiao.IJGMService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class JGMServiceImpl extends ServiceImpl<JGMMapper,TLaser> implements IJGMService  {

    @Autowired
    private JGMMapper jgmMapper;


    @Override
    public IPage<TLaser> selectJgmPage(Page<TLaser> jgmPage) {
        return jgmMapper.selectJgmPage(jgmPage);
    }

    @Override
    public TLaser selectOneByOrderId(String orderId) {
        return jgmMapper.selectOneByOrderId(orderId);
    }

    @Override
    public void updateLCode(String laserUpdate) {
        jgmMapper.updateLCode(laserUpdate);
    }

    @Override
    public void saveJgm(TLaser laser) {
        jgmMapper.saveJgm(laser);
    }

    @Override
    public void addPrinterToOrder(String beUpdateOrderId, String beAddPNum) {
        jgmMapper.addPrinterToOrder(beUpdateOrderId,beAddPNum);
    }

    @Override
    public void changeLstatus(String beUpdateOrderId) {
        jgmMapper.changeLstatus(beUpdateOrderId);
    }

    @Override
    public IPage<TLaser> selectJgmPageDy(Page<TLaser> jgmPage) {
        return jgmMapper.selectJgmPageDy(jgmPage);
    }

    @Override
    public void addPrinterToLaser(String beUpdateOrderId, String beAddPNum) {
        jgmMapper.addPrinterToLaser(beUpdateOrderId,beAddPNum);
    }
}
